ProxyPropDescriptor
Ecng.ComponentModel.CustomObjectWrapper`1
Read-only property descriptor that proxies access to the wrapped object's property. SetValue and ResetValue operations throw NotSupportedException.
Herda de: NamedPropertyDescriptor
Construtores
ProxyPropDescriptor
public ProxyPropDescriptor(PropertyDescriptor orig, object owner)
proxyPropDescriptor = ProxyPropDescriptor(orig, owner)
Read-only property descriptor that proxies access to the wrapped object's property. SetValue and ResetValue operations throw NotSupportedException.
- orig
- The original property descriptor from the wrapped object.
- owner
- The wrapper instance that owns this descriptor.
Propriedades
IsReadOnly
public override bool IsReadOnly { get; }
value = proxyPropDescriptor.IsReadOnly
Gets a value indicating whether the collection is read-only.
PropertyType
public override Type PropertyType { get; }
value = proxyPropDescriptor.PropertyType
Property type.
Métodos
CanResetValue
public override bool CanResetValue(object c)
result = proxyPropDescriptor.CanResetValue(c)
SetValue
public override void SetValue(object c, object value)
proxyPropDescriptor.SetValue(c, value)
ShouldSerializeValue
public override bool ShouldSerializeValue(object c)
result = proxyPropDescriptor.ShouldSerializeValue(c)